package itheima.TestThread.ThreadTest.MySynchronized;

import itheima.TestThread.ThreadTest.MyVolatile.Boy;
import itheima.TestThread.ThreadTest.MyVolatile.Girl;

public class Demo {
    public static void main(String[] args) {
        itheima.TestThread.ThreadTest.MyVolatile.Boy boy =new Boy();
        boy.setName("小强");
        boy.start();

        itheima.TestThread.ThreadTest.MyVolatile.Girl girl = new Girl();
        girl.setName("凤梨");
        girl.start();
    }
}
